<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" 
           %><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"
           %><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"
           %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@ page contentType="text/html;charset=ISO-8859-1"
         %><html:html>
    <head>
        <title>Soporte T&eacute;cnico</title>
        <html:base/>
        <%@include file="../header/include.jsp" %>
    </head>
    <body>
        <div id="header"  class="ui-widget-header ui-corner-all">
            <h1><bean:message key="all.title"/></h1>
            <div id="menu">
                <ul id="nav">
                    <%--<li><html:link action="/APreCrearContacto.do"><bean:message key="VContactos.label1"/></html:link></li>--%>

                </ul>
            </div>
        </div>
        <div id="body_wrapper">
            <div id="body">
                <div id="split">
                    <div class="top"></div>
                    <div id="left">
                        <div id="content">
                            ${empty msg ? "" : msg}
                            <div class="fg-toolbar ui-widget-header ui-corner-top">

                                <h1>Soporte T&eacute;cnico</h1>
                            </div>

                            <div  class="ui-widget-content ui-widget">
                                <div style="float: right;margin: 1% 1% 1% 1%; clear: left;">
                                    <ul class="sf_admin_td_actions fg-buttonset fg-buttonset-single">
                                        <cohesion:actor actors="5">
                                            <li class="sf_admin_action_usuario">
                                                <html:link action="/APreCrearSoporteTecnico.do" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-plus"></span>Nuevo Soporte T&eacute;cnico</html:link>
                                                
                                            </li>

                                        </cohesion:actor>
                                            <cohesion:actor actors="5"><li class="sf_admin_action_usuario"><html:link action="/APreAplicarServicioTecnico.do" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-arrowreturnthick-1-w"></span>Aplicar Servicio T&eacute;cnico</html:link></li></cohesion:actor>
                                    </ul>
                                </div>

                                <div class="list ui-grid-table ui-widget ui-corner-all ui-helper-reset ui-helper-clearfix">


                                    <display:table name="L_SoporteTecnico" requestURI="/APreSoportesTecnicos.do" pagesize="10"  class="display-tag-soporteTecnico" htmlId="display-tag-soporteTecnico" id="soporteTecnico">
                                        <display:column property="nombre" title="Nombre" sortable="true"/>
                                        <display:column title="Acciones">
                                            <ul class="sf_admin_td_actions fg-buttonset fg-buttonset-single">
                                                <li class="sf_admin_action_show"><html:link action="/APreSoporteTecnico.do" paramId="idSoporteTecnico" paramName="soporteTecnico" paramProperty="idSoporteTecnico" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-document"></span>Mostrar</html:link></li>
                                                <li class="sf_admin_action_edit"><html:link action="/APreEditarSoporteTecnico.do" paramId="idSoporteTecnico" paramName="soporteTecnico" paramProperty="idSoporteTecnico" styleClass="fg-button-mini fg-button ui-state-default fg-button-icon-left"><span class="ui-icon ui-icon-pencil"></span>Editar</html:link>
                                            </ul>

                                        </display:column>

                                    </display:table>

                                    <script>
                                        $(document).ready(function() {

                                            $('table#display-tag-soporteTecnico thead').addClass('ui-widget-header');
                                            $('table#display-tag-soporteTecnico thead tr th').addClass('ui-state-default ui-th-column');
                                            $('table#display-tag-soporteTecnico tbody tr').addClass('sf_admin_row ui-widget-content odd');



                                        });
                                    </script>


                                    <%--


                                <table border="1">
                                    <thead>
                                        <tr>
                                            <th>Nombre Contacto</th>
                                            <th>Cuenta</th>
                                            <th>Telefono</th>
                                        </tr>
                                    </thead>
                                    <tbody><% request.setAttribute("_vacio", new Object[0]);%>
                                        <logic:iterate id="contacto" collection="${empty L_Contacto ? _vacio : L_Contacto}">
                                            <tr>
                                                <td><html:link action="/APreContacto.do" paramId="idContacto" paramName="contacto" paramProperty="idContacto">${empty contacto.nombre ? "Editar" : contacto.nombre}</html:link></td>
                                                <td>${contacto.cuenta.nombre}</td>
                                                <td>${contacto.telefonoHabitacion}</td>

                                            </tr>
                                        </logic:iterate>
                                    </tbody>
                                </table>--%>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div id="right">

                        <%@include file="../administrador/VMenuAdmin.jsp" %>
                    </div>
                    <div class="clearer ui-helper-clearfix"></div>
                    <div class="bottom"></div>
                </div>
                <div class="clearer"></div>
            </div>
            <div class="clearer"></div>
        </div>
        <div id="end_body"></div>
<div id="footer"> <%@include file="/footer/include.jsp" %> </div>
    </body>
</html:html>